package com.shuogesha.config;

import javax.annotation.PostConstruct;

import org.springframework.context.annotation.Configuration;

import com.netflix.hystrix.strategy.HystrixPlugins;
import com.shuogesha.bean.MyHystrixConcurrencyStrategy;
@Configuration
public class HystrixConfig {
	@PostConstruct
    public void init(){
        HystrixPlugins.getInstance().registerConcurrencyStrategy(
            new MyHystrixConcurrencyStrategy()
        );
    }
}
